package cn.flying.cloud;

import org.apache.dubbo.config.spring.context.annotation.EnableDubbo;
import org.mybatis.spring.annotation.MapperScan;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;

/**
 * Admin管理服务启动类
 *
 * @author: admin
 * @date: 2023年06月10日 11:00
 * @version: 1.0
 */
@EnableDubbo
@EnableFeignClients
@EnableDiscoveryClient
@MapperScan(basePackages = {"cn.flying.**.mapper", "cn.flying.cloud.uid.worker.dao"})
@SpringBootApplication(scanBasePackages = "cn.flying.**")
public class AdminApplication {
    private static final Logger logger = LoggerFactory.getLogger(AdminApplication.class);

    public static void main(String[] args) {
        SpringApplication.run(AdminApplication.class, args);
        logger.info("====================Admin管理服务启动成功！=======================");
    }
}
